<%--
  Created by IntelliJ IDEA.
  User: bbb304
  Date: 2025/11/2
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>员工管理系统 - 首页</title>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<div class="container">
  <header>
    <h1>员工信息管理系统</h1>
    <div class="user-info">
      欢迎, ${sessionScope.username} |
      < a href=" ">退出</ a>
</div>
</header>

<nav>
  <ul>
    <li>< a href="${pageContext.request.contextPath}/dashboard" class="active">首页</ a></li>
    <li>< a href="${pageContext.request.contextPath}/employees">员工管理</ a></li>
  </ul>
</nav>

<main>
  <div class="dashboard">
    <h2>系统概览</h2>
    <div class="stats">
      <div class="stat-card">
        <h3>员工总数</h3>
        <p class="count">${employeeCount}</p >
      </div>
      <div class="stat-card">
        <h3>部门数量</h3>
        <p class="count">5</p >
      </div>
      <div class="stat-card">
        <h3>本月入职</h3>
        <p class="count">2</p >
      </div>
    </div>

    <div class="quick-actions">
      <h3>快速操作</h3>
      < a href="${pageContext.request.contextPath}/employees?action=new" class="btn btn-primary">添加新员工</ a>
    < a href="${pageContext.request.contextPath}/employees" class="btn btn-secondary">查看所有员工</ a>
  </div>
  </div>
</main>
</div>
</body>
</html>
